namespace MyBlog.DataEntity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public partial class Tbl_Message
    {
        public Tbl_Message()
        {
            Tbl_MsgReply = new HashSet<Tbl_MsgReply>();
        }

        public int ID { get; set; }

        [StringLength(20)]
        public string AccountId { get; set; }

        [StringLength(50)]
        public string VisitorName { get; set; }

        [StringLength(50)]
        public string VisitorIP { get; set; }

        [StringLength(50)]
        public string VisitUid { set; get; }

        [Required]
        public string Content { get; set; }

        public DateTime MsgTime { get; set; }

        public virtual Tbl_Account Tbl_Account { get; set; }

        public virtual ICollection<Tbl_MsgReply> Tbl_MsgReply { get; set; }

        public string AgreeUsers { get; set; }

        public string VisitorEmail { set; get; }
    }
}
